import { createWebHistory,createRouter  } from "vue-router"
import ProductRegister from "@/views/ProductRegister.vue"
import CodeRules from "@/views/CodeRules.vue"
import CodeRecords from "@/views/CodeRecords.vue"
import ProductInfo from "@/views/ProductInfo.vue"
import DefaultView from "@/views/DefaultView.vue"
import PurchaseApply from "@/views/hotel/PurchaseApply.vue"
import TVSelect from "@/views/hotel/TVSelect.vue"
import OrderCreate from "@/views/hotel/OrderCreate.vue"
import OrderPrint from "@/views/hotel/OrderPrint.vue"
import PayMent from "@/views/hotel/PayMent.vue"
import ConfirmOrder from "@/views/tv/ConfirmOrder.vue"
import MakeContract from "@/views/tv/MakeContract.vue"
import ProducePlan from "@/views/tv/ProducePlan.vue"
import ProduceInfo from "@/views/tv/ProduceInfo.vue"
import MaterialPlan from "@/views/tv/MaterialPlan.vue"
import LcdSelect from "@/views/tv/LcdSelect.vue"
import PartOrder from "@/views/tv/PartOrder.vue"
import PartFileOrder from "@/views/tv/PartFileOrder.vue"
import ShowOrder from "@/views/lcd/ShowOrder.vue"
import LogisticsOrder from "@/views/lcd/LogisticsOrder.vue"
import LogisticsOrderInfo from "@/views/lcd/LogisticsOrderInfo.vue"
import PackageInfo from "@/views/lcd/PackageInfo.vue"
import VehicleDispatch from "@/views/logistics/VehicleDispatch.vue"
import VehicleDispatchInfo from "@/views/logistics/VehicleDispatchInfo.vue"
import InfoReport from "@/views/logistics/InfoReport.vue"
import CheckPack from "@/views/logistics/CheckPack.vue"
import TakeOver from "@/views/logistics/TakeOver.vue"
import LCDStore from "@/views/lcd/LCDStore.vue"
import MonthBill from "@/views/lcd/MonthBill.vue"
import MaterialDemand from "@/views/tv/MaterialDemand.vue"
import TvAssembly from "@/views/tv/TvAssembly.vue"
import TvComplete from "@/views/tv/TvComplete.vue"
import TvStore from "@/views/tv/TvStore.vue"
import Outbound from "@/views/tv/Outbound.vue"
import UserStore from "@/views/tv/UserStore.vue"
import AccessKeyInfo from "@/views/AccessKeyInfo.vue"
import DeliveryConfirm from "@/views/lcd/DeliveryConfirm.vue"
//创建路由器
const router = createRouter({
  history: createWebHistory (),
  //管理路由
  routes: [
    {
      // 根路径
      path: '/',
      // 重定向到 /register
      redirect: '/defaultView'
    },
    {
      //路径
      path: '/register',
      //组件绑定
      component: ProductRegister
    },
    {
      //路径
      path: '/rules',
      //组件绑定
      component: CodeRules
    },
    
    {
      //路径
      path: '/records',
      //组件绑定
      component: CodeRecords
    },
    {
      //路径
      path: '/info',
      //组件绑定
      component: ProductInfo
    },

    {
      //路径
      path: '/hotel/apply',
      //组件绑定
      component: PurchaseApply
    },
    {
      //路径
      path: '/hotel/tv',
      //组件绑定
      component: TVSelect
    },
    {
      //路径
      path: '/hotel/order',
      //组件绑定
      component: OrderCreate
    },
    {
      //路径
      path: '/hotel/print',
      //组件绑定
      component: OrderPrint
    },
    {
      //路径
      path: '/hotel/payment',
      //组件绑定
      component: PayMent
    },
    {
      //路径
      path: '/tv/confirmOrder',
      //组件绑定
      component: ConfirmOrder
    },
    {
      //路径
      path: '/tv/makeContract',
      //组件绑定
      component: MakeContract
    },
    {
      //路径
      path: '/tv/producePlan',
      //组件绑定
      component: ProducePlan
    },
    {
      //路径
      path: '/tv/producteInfo',
      //组件绑定
      component: ProduceInfo
    },
    {
      //路径
      path: '/tv/materialPlan',
      //组件绑定
      component: MaterialPlan
    },
    {
      //路径
      path: '/tv/lcdSelect',
      //组件绑定
      component: LcdSelect
    },
    {
      //路径
      path: '/tv/partOrder',
      //组件绑定
      component: PartOrder
    },
    {
      //路径
      path: '/tv/partFileOrder',
      //组件绑定
      component: PartFileOrder
    },
    {
      //路径
      path: '/lcd/showOrder',
      //组件绑定
      component: ShowOrder
    },
    {
      //路径
      path: '/lcd/deliveryconfirm',
      //组件绑定
      component: DeliveryConfirm
    },
    {
      //路径
      path: '/lcd/logisticsOrder',
      //组件绑定
      component: LogisticsOrder
    },
    {
      //路径
      path: '/lcd/logisticsOrderInfo',
      //组件绑定
      component: LogisticsOrderInfo
    },
    {
      //路径
      path: '/lcd/packageInfo',
      //组件绑定
      component: PackageInfo
    },
    {
      //路径
      path: '/logistics/vehicleDispatch',
      //组件绑定
      component: VehicleDispatch
    },
    {
      //路径
      path: '/logistics/vehicleDispatchInfo',
      //组件绑定
      component: VehicleDispatchInfo
    },
    {
      //路径
      path: '/logistics/infoReport',
      //组件绑定
      component: InfoReport
    },
    {
      //路径
      path: '/logistics/checkPack',
      //组件绑定
      component: CheckPack
    },
    {
      //路径
      path: '/logistics/takeOver',
      //组件绑定
      component: TakeOver
    },
    {
      //路径
      path: '/lcd/partStore',
      //组件绑定
      component: LCDStore
    },
    {
      //路径
      path: '/lcd/monthBill',
      //组件绑定
      component: MonthBill
    },
    {
      //路径
      path: '/hotel/materialDemand',
      //组件绑定
      component: MaterialDemand
    },
    {
      //路径
      path: '/hotel/tvAssembly',
      //组件绑定
      component: TvAssembly
    },
    {
      //路径
      path: '/hotel/tvComplete',
      //组件绑定
      component: TvComplete
    },
    {
      //路径
      path: '/tv/tvStore',
      //组件绑定
      component: TvStore
    },
    {
      //路径
      path: '/tv/outBound',
      //组件绑定
      component: Outbound
    },
    {
      //路径
      path: '/tv/userStore',
      //组件绑定
      component: UserStore
    },
    {
      //路径
      path: '/accesskey',
      //组件绑定
      component: AccessKeyInfo
    },
    {
      //路径
      path: '/defaultView',
      //组件绑定
      component: DefaultView
    },
  ],
  
})

export default router